<template>
	<view class="plr-36 pb-20">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:''
			}
		},
		onLoad(option) {
			this.init(option.id)
		},
		methods: {
			init(id){
				this.$http('/addons/ddrive/message/notice_info',{
					id: id
				},"POST").then(data=>{
					console.log(data);
					this.content = data.list_array.content.replace(/\<img/gi, '<img style="width:100%;height:auto"')
					uni.setNavigationBarTitle({
						title: data.list_array.title
					})
				})
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
